PEP 3132 -- Extended Iterable Unpacking
This PEP proposes a change to iterable unpacking syntax, allowing to specify a "catch-all" name which will be assigned a list of all items not assigned to a "regular" name.
なぜ提案したか(Rationale)
Many algorithms require splitting a sequence in a "first, rest" pair. With the new syntax,
first, rest = seq[0], seq[1:]
is replaced by the cleaner and probably more efficient:
first, *rest = seq